# coding=utf-8

import numpy as np
from PIL import Image

import input_data

im = Image.open('/usr/data/比赛试题/比赛数据/train/TrainImage/TestImage_9.bmp')
im_array = np.array(im)
# print((255 - im_array)/255)
# print((255 - np.array([j for i in im_array for j in i])) / 255)
# print(np.random.choice(60000, 10, replace=False))
# print(im_array.shape)

mnist = input_data.read_data_sets("MNIST_data/", one_hot=True)
#
batch_xs, batch_ys = mnist.train.next_batch(100)
print(type(batch_xs))
print(type(batch_ys))